package iPod;

import java.io.IOException;
import java.io.RandomAccessFile;

public class DataList extends IDBChunk
{	
	public void loadChildren(RandomAccessFile in) throws Exception
    {
    	in.seek(startPos + headerSize);    	
    	
    	for (int index = 0; index < recordSize; ++index)
		{
			// Read all the chunks possible in the file
			IDBChunk chunk = new IDBChunk();
			chunk.loadRecord(in);
			
			// Read the data from the chunk
			readChild(chunk, in);
			
			// Move on to the next chunk
			chunk.skip(in);		
		}
    } 	
}
